<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>png++: png::packed_pixel_row&lt; pixel &gt; Class Template Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">png++
   &#160;<span id="projectnumber">0.2.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacepng.html">png</a>      </li>
      <li class="navelem"><a class="el" href="classpng_1_1packed__pixel__row.html">packed_pixel_row</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">png::packed_pixel_row&lt; pixel &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="png::packed_pixel_row" -->
<p>The packed pixel row class template.  
 <a href="classpng_1_1packed__pixel__row.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="pixel__buffer_8hpp_source.html">pixel_buffer.hpp</a>&gt;</code></p>

<p><a href="classpng_1_1packed__pixel__row-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <br class="typebreak"/>
<a class="el" href="classpng_1_1detail_1_1const__packed__pixel__proxy.html">detail::const_packed_pixel_proxy</a><br class="typebreak"/>
&lt; pixel &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1packed__pixel__row.html#a4c0388d60842c2b6a2be299643bb3c9f">const_pixel_proxy</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The immutable packed pixel proxy type.  <a href="#a4c0388d60842c2b6a2be299643bb3c9f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <br class="typebreak"/>
<a class="el" href="classpng_1_1detail_1_1packed__pixel__proxy.html">detail::packed_pixel_proxy</a><br class="typebreak"/>
&lt; pixel &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1packed__pixel__row.html#a897495a13cbd44795072bd850e1dbce7">pixel_proxy</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The mutable packed pixel proxy type.  <a href="#a897495a13cbd44795072bd850e1dbce7"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1packed__pixel__row.html#ad09dc20d8daa8d32d240ee611be4d1b8">packed_pixel_row</a> (size_t <a class="el" href="classpng_1_1packed__pixel__row.html#a25a90dc43dbe6fe8770fcb30f0683775">size</a>=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a pixel row object for <code>size</code> packed pixels.  <a href="#ad09dc20d8daa8d32d240ee611be4d1b8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1packed__pixel__row.html#a25a90dc43dbe6fe8770fcb30f0683775">size</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1packed__pixel__row.html#af650107b3a1eaaefc9d491780c09c44f">resize</a> (size_t <a class="el" href="classpng_1_1packed__pixel__row.html#a25a90dc43dbe6fe8770fcb30f0683775">size</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Resizes the pixel row to hold up to <code>size</code> packed pixels.  <a href="#af650107b3a1eaaefc9d491780c09c44f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpng_1_1packed__pixel__row.html#a4c0388d60842c2b6a2be299643bb3c9f">const_pixel_proxy</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1packed__pixel__row.html#aadaf4feb690f1182600684c5cd5934dc">at</a> (size_t index) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an immutable proxy the to the pixel at <code>index</code>.  <a href="#aadaf4feb690f1182600684c5cd5934dc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpng_1_1packed__pixel__row.html#a897495a13cbd44795072bd850e1dbce7">pixel_proxy</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1packed__pixel__row.html#a746483f6e57f37f56e84e0dcdca94784">at</a> (size_t index)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a mutable proxy the to the pixel at <code>index</code>.  <a href="#a746483f6e57f37f56e84e0dcdca94784"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpng_1_1packed__pixel__row.html#a4c0388d60842c2b6a2be299643bb3c9f">const_pixel_proxy</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1packed__pixel__row.html#a7cfc6e59109b4a093f8474c524fcf7e0">operator[]</a> (size_t index) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an immutable proxy the to the pixel at <code>index</code>. The non-checking version.  <a href="#a7cfc6e59109b4a093f8474c524fcf7e0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpng_1_1packed__pixel__row.html#a897495a13cbd44795072bd850e1dbce7">pixel_proxy</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1packed__pixel__row.html#a180d74dc94c19b24bc9050fc8fb4debb">operator[]</a> (size_t index)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns n mutable proxy the to the pixel at <code>index</code>. The non-checking version.  <a href="#a180d74dc94c19b24bc9050fc8fb4debb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacepng.html#ac0e0e2e09bdd9a287618bfdc5f31ca52">byte</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpng_1_1packed__pixel__row.html#a74de77e418802c2294f9f4ff8616feb5">get_data</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the starting address of the row.  <a href="#a74de77e418802c2294f9f4ff8616feb5"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;class pixel&gt;<br/>
class png::packed_pixel_row&lt; pixel &gt;</h3>

<p>The packed pixel row class template. </p>
<p>Stores the pixel row as a std::vector of byte-s, providing access to individual packed pixels via proxy objects. </p>
</div><hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a4c0388d60842c2b6a2be299643bb3c9f"></a><!-- doxytag: member="png::packed_pixel_row::const_pixel_proxy" ref="a4c0388d60842c2b6a2be299643bb3c9f" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class pixel&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classpng_1_1detail_1_1const__packed__pixel__proxy.html">detail::const_packed_pixel_proxy</a>&lt; pixel &gt; <a class="el" href="classpng_1_1packed__pixel__row.html">png::packed_pixel_row</a>&lt; pixel &gt;::<a class="el" href="classpng_1_1packed__pixel__row.html#a4c0388d60842c2b6a2be299643bb3c9f">const_pixel_proxy</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The immutable packed pixel proxy type. </p>

</div>
</div>
<a class="anchor" id="a897495a13cbd44795072bd850e1dbce7"></a><!-- doxytag: member="png::packed_pixel_row::pixel_proxy" ref="a897495a13cbd44795072bd850e1dbce7" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class pixel&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classpng_1_1detail_1_1packed__pixel__proxy.html">detail::packed_pixel_proxy</a>&lt; pixel &gt; <a class="el" href="classpng_1_1packed__pixel__row.html">png::packed_pixel_row</a>&lt; pixel &gt;::<a class="el" href="classpng_1_1packed__pixel__row.html#a897495a13cbd44795072bd850e1dbce7">pixel_proxy</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The mutable packed pixel proxy type. </p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ad09dc20d8daa8d32d240ee611be4d1b8"></a><!-- doxytag: member="png::packed_pixel_row::packed_pixel_row" ref="ad09dc20d8daa8d32d240ee611be4d1b8" args="(size_t size=0)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class pixel&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpng_1_1packed__pixel__row.html">png::packed_pixel_row</a>&lt; pixel &gt;::<a class="el" href="classpng_1_1packed__pixel__row.html">packed_pixel_row</a> </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em> = <code>0</code></td><td>)</td>
          <td><code> [inline, explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a pixel row object for <code>size</code> packed pixels. </p>

<p>References <a class="el" href="classpng_1_1packed__pixel__row.html#af650107b3a1eaaefc9d491780c09c44f">png::packed_pixel_row&lt; pixel &gt;::resize()</a>, and <a class="el" href="classpng_1_1packed__pixel__row.html#a25a90dc43dbe6fe8770fcb30f0683775">png::packed_pixel_row&lt; pixel &gt;::size()</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a25a90dc43dbe6fe8770fcb30f0683775"></a><!-- doxytag: member="png::packed_pixel_row::size" ref="a25a90dc43dbe6fe8770fcb30f0683775" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class pixel&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="classpng_1_1packed__pixel__row.html">png::packed_pixel_row</a>&lt; pixel &gt;::<a class="el" href="classpng_1_1packed__pixel__row.html#a25a90dc43dbe6fe8770fcb30f0683775">size</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Referenced by <a class="el" href="classpng_1_1packed__pixel__row.html#ad09dc20d8daa8d32d240ee611be4d1b8">png::packed_pixel_row&lt; pixel &gt;::packed_pixel_row()</a>, <a class="el" href="classpng_1_1basic__pixel__buffer.html#a8ab920a182c081600aaca81a7e889d6f">png::basic_pixel_buffer&lt; packed_index_pixel&lt; bits &gt;, packed_pixel_row&lt; packed_index_pixel&lt; bits &gt; &gt; &gt;::put_row()</a>, and <a class="el" href="classpng_1_1packed__pixel__row.html#af650107b3a1eaaefc9d491780c09c44f">png::packed_pixel_row&lt; pixel &gt;::resize()</a>.</p>

</div>
</div>
<a class="anchor" id="af650107b3a1eaaefc9d491780c09c44f"></a><!-- doxytag: member="png::packed_pixel_row::resize" ref="af650107b3a1eaaefc9d491780c09c44f" args="(size_t size)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class pixel&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpng_1_1packed__pixel__row.html">png::packed_pixel_row</a>&lt; pixel &gt;::<a class="el" href="classpng_1_1packed__pixel__row.html#af650107b3a1eaaefc9d491780c09c44f">resize</a> </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Resizes the pixel row to hold up to <code>size</code> packed pixels. </p>

<p>References <a class="el" href="classpng_1_1packed__pixel__row.html#a25a90dc43dbe6fe8770fcb30f0683775">png::packed_pixel_row&lt; pixel &gt;::size()</a>.</p>

<p>Referenced by <a class="el" href="classpng_1_1packed__pixel__row.html#ad09dc20d8daa8d32d240ee611be4d1b8">png::packed_pixel_row&lt; pixel &gt;::packed_pixel_row()</a>.</p>

</div>
</div>
<a class="anchor" id="aadaf4feb690f1182600684c5cd5934dc"></a><!-- doxytag: member="png::packed_pixel_row::at" ref="aadaf4feb690f1182600684c5cd5934dc" args="(size_t index) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class pixel&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpng_1_1packed__pixel__row.html#a4c0388d60842c2b6a2be299643bb3c9f">const_pixel_proxy</a> <a class="el" href="classpng_1_1packed__pixel__row.html">png::packed_pixel_row</a>&lt; pixel &gt;::<a class="el" href="classpng_1_1packed__pixel__row.html#aadaf4feb690f1182600684c5cd5934dc">at</a> </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns an immutable proxy the to the pixel at <code>index</code>. </p>

</div>
</div>
<a class="anchor" id="a746483f6e57f37f56e84e0dcdca94784"></a><!-- doxytag: member="png::packed_pixel_row::at" ref="a746483f6e57f37f56e84e0dcdca94784" args="(size_t index)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class pixel&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpng_1_1packed__pixel__row.html#a897495a13cbd44795072bd850e1dbce7">pixel_proxy</a> <a class="el" href="classpng_1_1packed__pixel__row.html">png::packed_pixel_row</a>&lt; pixel &gt;::<a class="el" href="classpng_1_1packed__pixel__row.html#aadaf4feb690f1182600684c5cd5934dc">at</a> </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a mutable proxy the to the pixel at <code>index</code>. </p>

</div>
</div>
<a class="anchor" id="a7cfc6e59109b4a093f8474c524fcf7e0"></a><!-- doxytag: member="png::packed_pixel_row::operator[]" ref="a7cfc6e59109b4a093f8474c524fcf7e0" args="(size_t index) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class pixel&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpng_1_1packed__pixel__row.html#a4c0388d60842c2b6a2be299643bb3c9f">const_pixel_proxy</a> <a class="el" href="classpng_1_1packed__pixel__row.html">png::packed_pixel_row</a>&lt; pixel &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns an immutable proxy the to the pixel at <code>index</code>. The non-checking version. </p>

</div>
</div>
<a class="anchor" id="a180d74dc94c19b24bc9050fc8fb4debb"></a><!-- doxytag: member="png::packed_pixel_row::operator[]" ref="a180d74dc94c19b24bc9050fc8fb4debb" args="(size_t index)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class pixel&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpng_1_1packed__pixel__row.html#a897495a13cbd44795072bd850e1dbce7">pixel_proxy</a> <a class="el" href="classpng_1_1packed__pixel__row.html">png::packed_pixel_row</a>&lt; pixel &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns n mutable proxy the to the pixel at <code>index</code>. The non-checking version. </p>

</div>
</div>
<a class="anchor" id="a74de77e418802c2294f9f4ff8616feb5"></a><!-- doxytag: member="png::packed_pixel_row::get_data" ref="a74de77e418802c2294f9f4ff8616feb5" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class pixel&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacepng.html#ac0e0e2e09bdd9a287618bfdc5f31ca52">byte</a>* <a class="el" href="classpng_1_1packed__pixel__row.html">png::packed_pixel_row</a>&lt; pixel &gt;::<a class="el" href="classpng_1_1packed__pixel__row.html#a74de77e418802c2294f9f4ff8616feb5">get_data</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the starting address of the row. </p>

<p>Referenced by <a class="el" href="classpng_1_1row__traits_3_01packed__pixel__row_3_01pixel_01_4_01_4.html#a46c4d5d5c3207a1f16e2b7b1b0442960">png::row_traits&lt; packed_pixel_row&lt; pixel &gt; &gt;::get_data()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="pixel__buffer_8hpp_source.html">pixel_buffer.hpp</a></li>
</ul>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Fri Jan 25 2013 14:10:10 for png++ by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
